<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="JSConsole,ru.kozlovskij.JavaScript.core.JSConsole,hash_numeric,param,url,browserRedirect,getVariable,newBase64Window,newWindow,redirect,varMethod,varScript" name="keywords">
<title>ru.kozlovskij.JavaScript.core.JSConsole</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'JSConsole - © Aleksandr Kozlovskij :: JSExperienceLib';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">JSE API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?ru/kozlovskij/JavaScript/core/JSConsole.html&amp;ru/kozlovskij/JavaScript/core/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;JSConsole</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class JSConsole"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">ru.kozlovskij.JavaScript.core</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public final  class JSConsole</td>
</tr>
</table>
<p></p>
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#hash_numeric">hash_numeric</a> : String<div class="summaryTableDescription">[static][read-only]</div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#param">param</a> : Array<div class="summaryTableDescription">[static][read-only]
   </div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#url">url</a> : String<div class="summaryTableDescription">[static][read-only]</div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#JSConsole()">JSConsole</a>()</div>
<div class="summaryTableDescription">
   Constructor.</div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#browserRedirect()">browserRedirect</a>(ns4:URLRequest = null, ns6:URLRequest = null, ie4:URLRequest = null, universal:URLRequest = null):void</div>
<div class="summaryTableDescription">[static]
   <br>Supported in :  <br>
     IE - NONE   <br>
     FF - OK    <br>
     Opera - no info <br>
   
   </div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getVariable()">getVariable</a>(name:String):String</div>
<div class="summaryTableDescription">[static]
   
   </div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#newBase64Window()">newBase64Window</a>(imgBase64String:String, width:int, height:int, resizable:Boolean):void</div>
<div class="summaryTableDescription">[static]
   Open new browser's pop-up window with Base64-BitmapData-Content.</div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#newWindow()">newWindow</a>(width:int, height:int, contentURL:String, resizable:Boolean, name:String = "_balnk"):void</div>
<div class="summaryTableDescription">[static]</div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#redirect()">redirect</a>(URL:String):void</div>
<div class="summaryTableDescription">[static]
   <br>Supported in :  <br>
     IE - OK    <br>
     FF - OK    <br>
     Opera - no info <br>
   </div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#varMethod()">varMethod</a>(name:String, body:String, arguments:Array = null):void</div>
<div class="summaryTableDescription">[static]
   <a>Этот метод позволяет объявить любую js-функцию на родительской для swf странице.</a>
   </div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#varScript()">varScript</a>(jsscript:String):void</div>
<div class="summaryTableDescription">[static]
   </div>
</td><td class="summaryTableOwnerCol">JSConsole</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="hash_numeric"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hash_numeric</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>hash_numeric:String</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get hash_numeric():String</code>
<br>
</div>
<a name="param"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">param</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>param:Array</code>&nbsp;&nbsp;[read-only]<p>
   </p><p>The default value is <code>[String]:Array</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get param():Array</code>
<br>
<br>
<span class="label">Example</span>
<br><div class='listing'><pre><code>if html url eq "domain.ru?param0=anyText&amp;param1=12345"<br>then<br>returned_value:Array =<br>[<li>["param0", "param1"], //names:Array</li><li>["anyText", "12345"], //values:Array</li><li>["param0=anyText", "param1=12345"] //params:Array</li><br>]</code></pre></div>
   <p></p>
</div>
<a name="url"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">url</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>url:String</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get url():String</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="JSConsole()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">JSConsole</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function JSConsole()</code><p>
   Constructor. You cannot create an instance of JSConsole,
   because all its methods are static.
   
   </p><br>
<span class="label">Throws</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code></code> &mdash; You cannot create an instance of JSConsole class.
   </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="browserRedirect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">browserRedirect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function browserRedirect(ns4:URLRequest = null, ns6:URLRequest = null, ie4:URLRequest = null, universal:URLRequest = null):void</code><p>
   <br>Supported in :  <br>
     IE - NONE   <br>
     FF - OK    <br>
     Opera - no info <br>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">ns4</span>:URLRequest</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">ns6</span>:URLRequest</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">ie4</span>:URLRequest</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">universal</span>:URLRequest</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="getVariable()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getVariable</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getVariable(name:String):String</code><p>
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code></td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../core/JSConsole.html#varMethod()" target="">varMethod</a>
<br>
<a href="../core/JSConsole.html#varScript()" target="">varScript</a>
</div>
</div>
<a name="newBase64Window()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">newBase64Window</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function newBase64Window(imgBase64String:String, width:int, height:int, resizable:Boolean):void</code><p>
   Open new browser's pop-up window with Base64-BitmapData-Content.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">imgBase64String</span>:String</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">width</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">height</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">resizable</span>:Boolean</code></td>
</tr>
</table>
</div>
<a name="newWindow()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">newWindow</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function newWindow(width:int, height:int, contentURL:String, resizable:Boolean, name:String = "_balnk"):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">width</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">height</span>:int</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">contentURL</span>:String</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">resizable</span>:Boolean</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> (default = "<code>_balnk</code>")<code></code></td>
</tr>
</table>
</div>
<a name="redirect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">redirect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function redirect(URL:String):void</code><p>
   <br>Supported in :  <br>
     IE - OK    <br>
     FF - OK    <br>
     Opera - no info <br>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">URL</span>:String</code></td>
</tr>
</table>
</div>
<a name="varMethod()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">varMethod</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function varMethod(name:String, body:String, arguments:Array = null):void</code><p>
   <a>Этот метод позволяет объявить любую js-функцию на родительской для swf странице.</a>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; имя метода.<br>
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">body</span>:String</code> &mdash; тело функции.<br>Example:<div class='listing'><pre>'var message = "Blah, blah, blah...";\n alert(message);'</pre></div>or<div class='listing'><pre>'var cont = 20 + args[0] + args[1] + '+ anyVariable +'; alert("cont = " + cont.toString());'<br>// про массив "args" смотри сточкой ниже.</pre></div>
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">arguments</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; Аргументы, которые функция будет принимать.<br>Example:<div class='listing'><pre>['argument_1:String', 'argument_2:Number', 'argument_3']<br>// далее к этим аргументам можно обращаться внутри функции по указанным именам <code>alert(<b>argument_1</b>);</code><br>// или к универсальному массиву полученных функцией аргументов <code>alert(<b>args</b>[0] == argument_1);</code>.</pre></div>
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../core/JSConsole.html#varScript()" target="">varScript</a>
<br>
<a href="../core/JSConsole.html#getVariable()" target="">getVariable</a>
</div>
<br>
<span class="label">Example</span>
<br><div class='listing'><pre>JSConsole.varMethod('my_js_function', 'alert(args.toString());');
   <br>JSConsole.varMethod('my_js_function2', 'alert(args[0]);');
   <br>this.stage.addEventListener(MouseEvent.MOUSE_DOWN, test_my_js_function);
   <br>this.stage.addEventListener(MouseEvent.MOUSE_UP, test_my_js_function2);
   <br>public function test_my_js_function(e:MouseEvent = null):void{ExternalInterface.call('my_js_function', 'mouse', 'down', '\\/');}
   <br>public function test_my_js_function2(e:MouseEvent):void{ExternalInterface.call('my_js_function', 'mouse', 'up');}</pre></div><br>
   Supported in :    <br>
     IE - OK    <br>
     FF - OK    <br>
     Opera - no info <br>
   <p></p>
</div>
<a name="varScript()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">varScript</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function varScript(jsscript:String):void</code><p>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">jsscript</span>:String</code></td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../core/JSConsole.html#varMethod()" target="">varMethod</a>
<br>
<a href="../core/JSConsole.html#getVariable()" target="">getVariable</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<div class="feedbackLink">
<center>
<a href="mailto:Aleksandr@Kozlovskij.ru?subject=ASLR Feedback(%D0%A1%D1%80 %D1%81%D0%B5%D0%BD 10 2008, 1:17 PM GMT+04:00) : ru.kozlovskij.JavaScript.core.JSConsole">Submit Feedback to Aleksandr Kozlovskij</a>
</center>
</div>
<center class="copyright">
</center>
</div>
</body>
</html>
<!---->
